﻿@model GameSchoolWeb.Models.Course
<div id="templatemo_content">
    @{
        ViewBag.Title = "Námskeið";
    }
    <div class="templatemo_box">
        <h2>
            Námskeið</h2>
        <div class="body">
            <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
            <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
            <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
            @using (Html.BeginForm())
            {
                @Html.ValidationSummary(true)
    
                @Html.HiddenFor(model => model.id)
                <div class="body">
                    <div class="editor-label">
                        Heiti Námskeiðs :
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.strName)
                    </div>
                    <div class="editor-label">
                        Lýsing Námskeiðs :
                    </div>
                    <div class="editor-field">
                        @Html.TextAreaFor(model => model.strCourseDescription)
                        @Html.ValidationMessageFor(model => model.strCourseDescription)
                    </div>
                    <div class="editor-label">
                        Umsjónarkennari :
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.strCourseMaster)
                        @Html.ValidationMessageFor(model => model.strCourseMaster)
                    </div>
                    <p>
                        <input type="submit" value="Skrá" />
                    </p>
                    <hr />
                    @Html.ActionLink("Aftur á forsíðu", "Index", "Home")
                    <div>
                    </div>
                </div>

            }
        </div>
        <div class="box_bottom">
            <span></span>
        </div>
    </div>
